import request from '@/api/request'

// 
export function adsList(data) {
  return request({
    url: '/lejuAdmin/advertise/adsList',
    method: 'get',
    data
  })
}

export function delAds(adsId) {
    return request({
      url: `/lejuAdmin/advertise/delAds/${adsId}`,
      method: 'delete',
    })
  }

//   
  export function addAds(data) {
    return request({
      url: '/lejuAdmin/advertise/addAds',
      method: 'post',
      data
    })
  }

//   更新
  export function updateAds(data) {
    return request({
      url: '/lejuAdmin/advertise/updateAds',
      method: 'post',
      data
    })
  }